package com.ag.work.action;

import java.util.List;

import org.apache.log4j.Logger;

import com.ag.bean.TbEvent;
import com.ag.common.BaseAction;
import com.ag.work.service.impl.EventStatusServiceImpl;

@SuppressWarnings("serial")
public class EventStatusAction extends BaseAction {
	private static final Logger logger = Logger.getLogger(EventStatusAction.class);
    private EventStatusServiceImpl eventStatusServiceImpl;
    private String EId;
	
	public String eventStatus(){
		List list = eventStatusServiceImpl.getEStatus("1010011001");
		logger.info("------------");
		String status = null;
		if (list.size()>0) {
			TbEvent event = (TbEvent) list.get(0);
			status = event.getTbEventStatus().getTbesId();			
		}		
		logger.info("status:--"+status);
		return status;
	}

	public EventStatusServiceImpl getEventStatusServiceImpl() {
		return eventStatusServiceImpl;
	}

	public void setEventStatusServiceImpl(
			EventStatusServiceImpl eventStatusServiceImpl) {
		this.eventStatusServiceImpl = eventStatusServiceImpl;
	}

	public String getEId() {
		return EId;
	}

	public void setEId(String eId) {
		EId = eId;
	}
}
